<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <meta http-equiv="X-UA-Compatible" content="ie=edge">
  <title>Document</title>
  <link rel="stylesheet" href="./lib/mui/css/mui.min.css">
  <link rel="stylesheet" href="./lib/fa/css/font-awesome.min.css">
  <link rel="stylesheet" href="./css/common.css">
  <link rel="stylesheet" href="./css/cart.css">
</head>
<!-- layout：布局 -->
<div class="lt-layout">
  <!-- 头部 -->
  <header class="lt-header">
    <a href="./index.html" class="home"><i class="fa fa-chevron-left"></i></a>
    <h4>购物车</h4>
  </header>

  <!-- 乐淘主体 -->
  <div class="lt-main">
    <div class="mui-scroll-wrapper">
      <div class="mui-scroll">

        <ul class="mui-table-view">
          <!-- 挖个坑 -->
        </ul>

      </div>
    </div>
  </div>

  <!-- 底部 -->
  <footer class="lt-footer">
    <ul>
      <li>
        <a href="./index.html">
          <i class="fa fa-home"></i>
          <p>首页</p>
        </a>
      </li>
      <li>
        <a href="./category.html">
          <i class="fa fa-align-justify "></i>
          <p>分类页</p>
        </a>
      </li>
      <li>
        <a href="./cart.html">
          <i class="fa fa-shopping-cart "></i>
          <p>购物车</p>
        </a>
      </li>
      <li class="current">
        <a href="./user.html">
          <i class="fa fa-user"></i>
          <p>用户中心</p>
        </a>
      </li>
    </ul>
  </footer>
</div>

<body>
  <script type="text/html" id="cartTpl">
      {{ each arr v i }}
        <li class="mui-table-view-cell cart_item">
          <div class="mui-slider-right mui-disabled">
            <a data-id="{{ v.id }}" class="mui-btn mui-btn-danger mui-icon mui-icon-trash btn_delete" ></a>
          </div>
          <div class="mui-slider-handle">
            <div class="mui-table-cell">
    
              <!-- 左侧图片 -->
              <div class="cart_img">
                <img src="{{ v.pic[0].picAddr }}" alt="">
                <input type="checkbox" class="ck"
                       data-price="{{ v.price }}"
                       data-num="{{ v.num }}"
                >
              </div>
    
              <!-- 右侧商品详情 -->
              <div class="cart_info">
                <p class="pro_name mui-ellipsis-2">
                  {{ v.proName }}
                </p>
                <p>
                  <span class="price">¥{{ v.price }}</span>
                  <span class="oldPrice">¥{{ v.oldPrice }}</span>
                  <span class="mui-pull-right">{{ v.num }}双</span>
                </p>
                <p>
                  鞋码: {{ v.size }}
                </p>
              </div>
    
            </div>
          </div>
        </li>
      {{ /each }}
    
    </script>
  <script src="./lib/zepto/zepto.min.js"></script>
  <script src="./lib/mui/js/mui.js"></script>
  <script src="./lib/artTemplate/template-web.js"></script>
  <script src="./js/common.js"></script>
  <script src="./js/cart.js"></script>
</body>

</html>